
# Makefile
# This file is part of opengl-vrml-assembly.
# Copyright (C) Rafal Pielech, rafal.pielech@gmail.com

# opengl-vrml-assembly is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# opengl-vrml-assembly is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with opengl-vrml-assembly.  If not, see <http://www.gnu.org/licenses/>.

COMPILER=g++
INCLUDE=-I. -IC:\Qt\qt\include
LIBS=-LC:\Qt\qt\lib
#// We are running on at least Windows XP
#define _WIN32_WINNT 0x0501
DEL=del
#
all: main.o vgFabric.o vgPart.o vgMachine.o vgTerminal.o vgWindow.o
	$(COMPILER) -g $(LIBS) -mwindows -o opengl-vrml-assembly.exe main.o vgFabric.o vgPart.o vgMachine.o vgTerminal.o vgWindow.o -lopengl32 -lglu32 -lglaux -lgdi32 -lQtXmld4 -lQtCored4
#
main.o: vgDebug.h vgFabric.h vgPart.h main.cc vgMachine.h
	$(COMPILER) -g -c $(INCLUDE) main.cc
#
vgFabric.o: vgDebug.h vgFabric.h vgFabric.cc
	$(COMPILER) -g -c $(INCLUDE) vgFabric.cc
#
vgPart.o: vgDebug.h vgPart.h vgPart.cc
	$(COMPILER) -g -c $(INCLUDE) vgPart.cc
#
vgMachine.o: vgDebug.h vgConstants.h vgMachine.h vgMachine.cc
	$(COMPILER) -g -c $(INCLUDE) vgMachine.cc
#
vgTerminal.o: vgDebug.h vgTerminal.h vgTerminal.cc
	$(COMPILER) -g -c $(INCLUDE) vgTerminal.cc
#
vgWindow.o: vgDebug.h vgWindow.h vgWindow.cc
	$(COMPILER) -g -c $(INCLUDE) vgWindow.cc
#
inspector: vgInspector.o
	$(COMPILER) -g -mwindows -o inspector.exe vgInspector.o
#
vgInspector.o: vgInspector.h vgInspector.cc vgConstants.h
	$(COMPILER) -g -c $(INCLUDE) vgInspector.cc
#
clean-up:
	$(DEL) *.o
	$(DEL) *.exe
